*** Settings ***
Documentation           通过cli获取BMC版本信息
Resource                ../../test_function/cli/ssh.robot
Suite Setup             Open SSH Connection
Suite Teardown          Close SSH Session    ${ssh}

*** Variables ***
${input}                ipmcget -d v
${expected_output}      Product INFO

*** Test Cases ***
Get BMC Version Via cli
    [Documentation]    通过ssh查询版本信息
    [Tags]    Get_BMC_Version_Via_cli

    ${rsp}=    Execute SSH Command    ${ssh}    ${input}
    Should Not Be Empty    ${rsp}    msg=未获取版本信息
    Log    BMC版本信息: \n${rsp}    console=False
    Should Contain    ${rsp}    ${expected_output}    msg=未找到产品信息

